package com.leanin.form.mapper;

import com.leanin.form.model.LeaninSatisfyForm;
import com.leanin.form.model.request.FormQueryDTO;
import com.leanin.form.model.response.SatisfyFormVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LeaninSatisfyFormMapper {
    int deleteByPrimaryKey(Long id);

    int insert(LeaninSatisfyForm record);

    int insertSelective(LeaninSatisfyForm record);

    LeaninSatisfyForm selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(LeaninSatisfyForm record);

    int updateByPrimaryKeyWithBLOBs(LeaninSatisfyForm record);

    int updateByPrimaryKey(LeaninSatisfyForm record);

    List<LeaninSatisfyForm> selectByFormName(@Param("formName") String formName);

    List<SatisfyFormVO> findByParam(@Param("formQueryDTO") FormQueryDTO formQueryDTO);

    SatisfyFormVO findById(@Param("formId") Long formId);
}